/* ==========================================================
   Meet Our Leaders: The Leaders Behind ConnexR
   File: wwwroot/css/leadership-leaders.css
   Used by: Views/Partials/blocklist/Components/leadershipLeadersBlock.cshtml
   ========================================================== */
.ld-lead {
  --ll-navy: #14256b;
  --ll-orange: #ff9a45;
  --ll-gutter: 5.6vw;
  --ll-card: 39vw;
  --ll-gap: 1.1vw;
  --ll-ease-out: cubic-bezier(.16, 1, .3, 1);

  box-sizing: border-box;
  width: 100%;
  padding: clamp(28px, 1.6vw, 44px) 0 clamp(36px, 3.6vw, 96px);
  background: linear-gradient(100deg, #ffffff 0%, #fffaf6 30%, #ffe6d2 62%, #ffc193 86%, #ffa86a 100%);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ll-navy);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.ld-lead *, .ld-lead *::before, .ld-lead *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- heading row ---------- */
.ld-lead__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 33%;
  gap: clamp(20px, 5vw, 120px);
  align-items: start;
  padding: 0 calc(var(--ll-gutter) + 1.5vw) 0 var(--ll-gutter);
  margin-bottom: clamp(22px, 3.4vw, 88px);
}
.ld-lead__eyebrow { margin-bottom: clamp(12px, 1.9vw, 48px); font-size: clamp(11px, .9vw, 22px); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.ld-lead__heading { font-size: clamp(24px, 2.1vw, 56px); font-weight: 600; line-height: 1.3; color: var(--ll-navy); }
.ld-lead__intro {
  padding-top: clamp(0px, 2.1vw, 54px);
  font-family: "DM Sans", "Poppins", sans-serif;
  font-size: clamp(13px, .9vw, 23px);
  line-height: 1.6;
  color: var(--ll-navy);
}

/* ---------- slider ---------- */
.ld-lead__track {
  display: flex;
  gap: var(--ll-gap);
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--ll-gutter);
  padding: 0 var(--ll-gutter);
  scrollbar-width: none;
  cursor: grab;
  outline: none;
}
.ld-lead__track::-webkit-scrollbar { display: none; }
.ld-lead__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.ld-lead__track.is-dragging a { pointer-events: none; }
.ld-lead__track:focus-visible { box-shadow: inset 0 0 0 2px var(--ll-orange); }
.ld-lead__track::after { content: ""; flex: 0 0 1px; } /* keeps the right padding when scrolled to the end */

.ld-lead__card {
  position: relative;
  flex: 0 0 var(--ll-card);
  display: grid;
  grid-template-columns: 55.5% 44.5%;
  height: calc(var(--ll-card) * .77);
  min-height: 300px;
  scroll-snap-align: start;
  overflow: hidden;
}
.ld-lead__photo { position: relative; overflow: hidden; background: #dfe3ee; }
.ld-lead__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.01);
  transition: transform 1.2s var(--ll-ease-out);
  -webkit-user-drag: none;
}
.ld-lead__card:hover .ld-lead__photo img { transform: scale(1.05); }

.ld-lead__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.4vw, 60px) clamp(14px, 1.3vw, 34px) clamp(16px, 1.7vw, 44px);
  background: var(--ll-navy);
  color: #fff;
}
.ld-lead__name { font-size: clamp(14px, 1.1vw, 28px); font-weight: 600; line-height: 1.3; color: #fff; }
.ld-lead__role {
  margin-top: 2px;
  font-size: clamp(10px, .72vw, 18px);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
}
.ld-lead__bio {
  margin-top: clamp(10px, 1.2vw, 30px);
  font-family: "DM Sans", "Poppins", sans-serif;
  font-size: clamp(12px, .9vw, 22px);
  line-height: 1.65;
  color: rgba(255, 255, 255, .92);
}
.ld-lead__in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(16px, 1.4vw, 34px);
  height: clamp(16px, 1.4vw, 34px);
  margin-top: auto;
  border-radius: 2px;
  background: #fff;
  color: var(--ll-navy);
  transition: background-color .35s ease, color .35s ease, transform .5s var(--ll-ease-out);
}
.ld-lead__in svg { width: 70%; height: 70%; fill: currentColor; }
.ld-lead__in:hover, .ld-lead__in:focus-visible { background: var(--ll-orange); color: #fff; transform: translateY(-2px); outline: none; }

/* orange line: under the photo, runs across the whole card on hover */
.ld-lead__line {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--ll-orange);
  transform: scaleX(.555);
  transform-origin: left center;
  transition: transform .8s var(--ll-ease-out);
}
.ld-lead__card:hover .ld-lead__line { transform: scaleX(1); }

/* ---------- arrows ---------- */
.ld-lead__nav { display: flex; gap: clamp(8px, .8vw, 18px); padding: clamp(14px, 1.9vw, 48px) var(--ll-gutter) 0; }
.ld-lead__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 2.6vw, 64px);
  height: clamp(36px, 2.6vw, 64px);
  border: 0;
  border-radius: 50%;
  background: var(--ll-orange);
  color: var(--ll-navy);
  cursor: pointer;
  transition: background-color .35s ease, color .35s ease, transform .5s var(--ll-ease-out), opacity .35s ease;
}
.ld-lead__arrow svg { width: 42%; height: 42%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ld-lead__arrow:hover { background: var(--ll-navy); color: #fff; }
.ld-lead__arrow[data-dir="-1"]:hover { transform: translateX(-2px); }
.ld-lead__arrow[data-dir="1"]:hover { transform: translateX(2px); }
.ld-lead__arrow:focus-visible { outline: 2px solid var(--ll-navy); outline-offset: 2px; }
.ld-lead__arrow[disabled] { opacity: .45; cursor: default; background: var(--ll-orange); color: var(--ll-navy); transform: none; }

/* ---------- entrance ---------- */
.ld-lead.js-reveal .ld-lead__fx { opacity: 0; transform: translateY(22px); }
.ld-lead.js-reveal .ld-lead__viewport.ld-lead__fx { transform: translateX(60px); }
.ld-lead.js-reveal.is-visible .ld-lead__fx {
  opacity: 1;
  transform: none;
  transition: opacity .9s ease var(--fd, 0s), transform 1.2s var(--ll-ease-out) var(--fd, 0s);
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .ld-lead { --ll-gutter: 32px; --ll-card: 56vw; --ll-gap: 12px; } }
@media (max-width: 900px) {
  .ld-lead { --ll-gutter: 24px; --ll-card: 70vw; }
  .ld-lead__head { grid-template-columns: 1fr; gap: 14px; padding-right: var(--ll-gutter); }
  .ld-lead__intro { padding-top: 0; max-width: 620px; }
}
@media (max-width: 640px) {
  .ld-lead { --ll-gutter: 20px; --ll-card: 80vw; --ll-gap: 10px; }
  /* photo on top, bio underneath */
  .ld-lead__card { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .ld-lead__photo { aspect-ratio: 4 / 4.2; }
  .ld-lead__panel { flex: 1; padding: 18px 16px 18px; }
  .ld-lead__in { margin-top: 16px; width: 22px; height: 22px; }
  .ld-lead__line { top: auto; transform: scaleX(1); height: 3px; }
}